/**
 * 
 */
package net.cmath.po;

import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 *
 */
public class User implements Table,Serializable {

	private static final long serialVersionUID = -52143618505166695L;
	
	private int id;
	private String userName;
	private String password;
	private Account account;
	private List<Role> roles;
	
	public User() {
		super(); 
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public String getTableName() {
		return "user";
	}
}
